package com.demo.webflux.spring5core.framework.webmvc;

import java.lang.reflect.Method;
import java.util.regex.Pattern;

/**保存url和method的关系
 * @author zhangsulei
 *
 */
public class HandlerMapping {

	private Object controller; //目标方法所在的controller对象
	private Method method; // url对应的目标方法
	private Pattern pattern; // url的封装

	public HandlerMapping(Pattern pattern, Object controller, Method method) {
		this.controller = controller;
		this.method = method;
		this.pattern = pattern;
	}
	public Object getController() {
		return controller;
	}
	public void setController(Object controller) {
		this.controller = controller;
	}
	public Method getMethod() {
		return method;
	}
	public void setMethod(Method method) {
		this.method = method;
	}
	public Pattern getPattern() {
		return pattern;
	}
	public void setPattern(Pattern pattern) {
		this.pattern = pattern;
	}

}
